﻿<%@ Page Title="" Language="C#" MasterPageFile="~/InventoryTracker/MasterPage.master" AutoEventWireup="true" CodeFile="CustomerMaster.aspx.cs" 
    Inherits="InventoryTracker_CustomerMaster" %>
<asp:Content ID="Content1" ContentPlaceHolderID="maincontent" Runat="Server">
    <div id="projectreport">
        <a name="content_start0" id="content_start0"></a>
        <fieldset>
            <h2 class="none">
                Customer Mastert</h2>
            <legend>Customer Information</legend>
            <div class="formsection">
                Customer</div>
            <p>
            <table style="height: 185px; width: 329px">
            <tr>
                <td>
                    <p>
                        <asp:Label ID="lblCustName" runat="server" Text="Customer Name"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtCustName"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                            <asp:TextBox ID="txtCustName" runat="server"></asp:TextBox>
                            <br/>
                    </p>
                    <p>
                        
                        <asp:Label ID="CustAddr1ID" runat="server" Text="Customer Address 1"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCustAddr1ID"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <asp:TextBox ID="txtCustAddr1ID" runat="server"></asp:TextBox>
                        <br/>
                    </p>
                    <p>
                        <asp:Label ID="CustAddr2ID" runat="server" Text="Address 2"></asp:Label>
                        <asp:TextBox ID="txtCustAddr2ID" runat="server"></asp:TextBox>
                    </p>
                    <p>
                        <asp:Label ID="CustAddr3ID" runat="server" Text="Address 3"></asp:Label>
                        <asp:TextBox ID="txtCustAddr3ID" runat="server"></asp:TextBox>
                    </p>
                    <p>
                        <asp:Label ID="lblCustCity" runat="server" Text="City"></asp:Label>
                        
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtCustCity"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <br/>
                        <asp:TextBox ID="txtCustCity" runat="server"></asp:TextBox>
                        
                    </p>
                    <p>
                        <asp:Label ID="lblCustState" runat="server" Text="State"></asp:Label>
                        
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtCustState"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <br/>
                        <asp:TextBox ID="txtCustState" runat="server"></asp:TextBox>
                        
                    </p>
                    <p>
                        <asp:Label ID="lblCustCountry" runat="server" Text="Country"></asp:Label>
                        
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtCustCountry"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <br/>
                        <asp:TextBox ID="txtCustCountry" runat="server"></asp:TextBox>
                        
                    </p>
            </td>
            <td>
            <br/>
            <br/>
                 <br/>
                 <br/>
                 
                    <p>
                        <asp:Label ID="lblCustPhone" runat="server" Text="Phone No"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtCustPhone"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <br />
                            <asp:TextBox ID="txtCustPhone" runat="server"></asp:TextBox>
                    </p>
                    <p>
                        
                        <asp:Label ID="lblCustMobile" runat="server" Text="Mobile No."></asp:Label>
                        <asp:TextBox ID="txtCustMobile" runat="server"></asp:TextBox>
                    </p>
                    <p>
                        <asp:Label ID="lblCustFax" runat="server" Text="Fax"></asp:Label>
                        <asp:TextBox ID="txtCustFax" runat="server"></asp:TextBox>
                    </p>
                    <p>
                        <asp:Label ID="lblCustEmail" runat="server" Text="EMail"></asp:Label>
                        <br />
                        <asp:TextBox ID="txtCustEMail" runat="server"></asp:TextBox>
                        <br />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
                        runat="server" ErrorMessage="Enter a valid E-Mail ID." 
                            ControlToValidate="txtCustEMail" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        
                    </p>
                    <p>
                        <asp:Label ID="lblCustZipCode" runat="server" Text="ZipCode"></asp:Label>
                        
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtCustZipCode"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <br />
                        <asp:TextBox ID="txtCustZipCode" runat="server"></asp:TextBox>
                        
                    </p>
                    <p>
                        <asp:Label ID="lblCustLeadTime" runat="server" Text="LeadTime"></asp:Label>
                        
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtCustLeadTime"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        
                        <br />
                        <asp:TextBox ID="txtCustLeadTime" runat="server"></asp:TextBox>
                        
                    </p>
                    
                    <p>
                        <asp:Label ID="lblCustStatus" runat="server" Text="Status"></asp:Label>
                        
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtCustStatus"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <br />
                        <asp:TextBox ID="txtCustStatus" runat="server"></asp:TextBox>
                        
                    </p>
            </td>
            </tr>
            </table>
            
            <asp:Label ID="lblWarn" runat="server" Text="* Required Fields" 
                ForeColor="Red"></asp:Label>
            <div class="formsection">
                <asp:Button ID="btnCustSubmit" runat="server"  Text="Submit" 
                    onclick="btnCustSubmit_Click"/>
                    <asp:Label ID="lblResult" runat="server"></asp:Label>
            </div>
        </fieldset>
    </div>
</asp:Content>

